{% extends "base.html" %}
{% block title %} {{entry.title}} - {{blog.title}} {% endblock %}
{% block topmenu %}{% endblock %}
{% block content%}
<div id="page">
	<div id="content" class="content">
	{% if entry %}
   <div id="post-{{entry.key}}">
     <div class="title">
   	  <h2><a href="/{{ entry.link }}" rel="bookmark" title="Permanent Link to {{entry.title}}">{{entry.title}}</a> </h2>
   		 <p class="meta">
					<a href="#">{{entry.author}}</a> posted on <span class="date">{{entry.createdate|datetz:"Y-m-d H:i"}}</span>
				</p>
   	  
     </div>
     {{ entry.content }}
     {%if relateposts%}
     	<h4>Relate Posts:</h4>
			<ul>
				{%for post in relateposts%}
					<li><a href="/{{post.link}}">{{post.title}}</a></li>
				{%endfor%}
			</ul>
		 {%endif%}
     <div class="meta">
     	{% if entry.strtags %}
     	Tags: 
     	{%for tag in entry.tags%}
     	<a href="/tag/{{tag|urlencode}}">{{tag}}</a> 
     	{%endfor%}<br><br>
     	{%endif%}  
     	Posted in 
     	  {%for cate in entry.categories%} <a href="/category/{{cate.slug}}">{{cate.name}}</a> {%endfor%} 
     	| {%if self.is_admin%}<a href="{{entry.edit_url}}">Edit</a>  {%endif%}  
     	</div>

   </div>
   {% include "comments.html" %}
	{%endif%}
	</div>
	<!-- end #content -->
	{% include "sidebar.html" %}
	<!-- end #sidebar -->
	<div style="clear: both;">&nbsp;</div>
</div>  
<!-- end #page --> 
{% endblock %}